package cn.tedu._05weibo.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 自定义枚举[enum]状态码
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    // 所有的实例都放在最上面
    NOT_LOGIN(1000,"未登录"),
    LOGIN_SUCCESS(1001,"登录成功"),
    PASSWORD_ERROR(1002,"密码错误"),
    USERNAME_ERROR(1003,"用户名错误"),
    USERNAME_ALREADY_EXIST(1004,"用户名已存在"),
    OPERATION_SUCCESS(2001,"操作成功"),
    OPERATION_FAILED(2002,"操作失败"),
    THROWABLE_ERROR(9999,"未知异常"),
    VALIDATED_ERROR(3000,"参数校验失败");
    private Integer state;
    private  String message;


}
